package cn.ncupyh;

import java.util.Random;

public class Print10RanNum {
    //每次随机生成10个0~100的正整数
    public static void main(String[] args) {
        //创建对象
        Random r = new Random();
        //循环生成
        for (int i = 0; i < 10; i++) {
            int random = r.nextInt(101);//0~100
            System.out.println(random);
        }
    }

}
